package com.cskaoyan.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * 排除了@Controller注解对应的组件
 * @author stone
 * @date 2022/08/05 16:07
 * excludeFilters需要的是Filter[]
 */
@ComponentScan(value = "com.cskaoyan",
        //excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION,classes = {Controller.class, EnableWebMvc.class})})
        //excludeFilters = {@ComponentScan.Filter(classes = {Controller.class, EnableWebMvc.class})})
        //excludeFilters = {@ComponentScan.Filter(value = {Controller.class, EnableWebMvc.class})})
        excludeFilters = {@ComponentScan.Filter({Controller.class, EnableWebMvc.class})})
public class SpringConfiguration {
    // 整合MyBatis
}
